package com.atguigu.gmall.order.client;

import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.order.client.impl.OrderDegradeFeignClient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.Map;

/**
 * @author :ttm
 * @description :
 * @create :2021-12-29 16:24:00
 */
@FeignClient(value = "service-order",fallback = OrderDegradeFeignClient.class)
public interface OrderFeignClient {

    //  通过feign 订单页面 在feign 拦截器中 创建了httpServeletRequest
    @GetMapping("api/order/auth/trade")
    Result<Map<String, Object>> trade();
}

